package 结构型模式.适配器模式.对象适配器;

public class Computer {
    //从SD卡中读取数据
    public String readSD(SDCard sdCard){
        if (sdCard==null){
            throw new NullPointerException("sd card is not null");
        }
        return sdCard.readSD();
    }
}
